﻿using UnityEngine;
using System.Collections;

public class MainMenuPanel : BasePanel {

	private CanvasGroup canvasGroup;

	void Start(){
		canvasGroup = GetComponent<CanvasGroup> ();
	
	}

	public void OnPushPanel(string typeString) {
		UIPanelType panelType = (UIPanelType)System.Enum.Parse(typeof(UIPanelType), typeString);
		UIManager.Instance.PushPanel(panelType);
	}

	public override void OnPause ()
	{
		canvasGroup.blocksRaycasts = false;
	}   

   

	public override void OnResume ()
	{
		canvasGroup.blocksRaycasts = true;
	}
}
